import { request } from "@/http/axios.ts"

export function getRoleListAPI() {
  return request({
    url: "/park/sys/role",
    method: "GET"
  })
}
export function getTreeListAPI() {
  return request({
    url: "/park/sys/permision/all/tree"
  })
}
export function getRoleDetailAPI(roleId) {
  return request({
    url: `/park/sys/role/${roleId}`
  })
}
export function getRoleUserAPI(roleId) {
  return request({
    url: `/park/sys/roleUser/${roleId}`
  })
}
